Optimize public schedule speaker queries - #4810
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Adds No issues found. Minor, non-blocking note: the new test hardcodes exact query counts (13/14) via |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4810 +/- ##
=======================================
Coverage 93.11% 93.11%
=======================================
Files 360 360
Lines 11239 11241 +2
Branches 905 905
=======================================
+ Hits 10465 10467 +2
Misses 663 663
Partials 111 111 🚀 New features to boost your workflow:
|
Summary
Why
ScheduleItemUseris a DTO, so Strawberry Django cannot propagate the nestedParticipant.photooptimization through it. Uploaded avatars therefore caused one additional SQL query per speaker across the public schedule.The frontend operation now stays constant at 13 queries for submission/additional-speaker schedules and 14 for keynote schedules as item count grows from one to four.
Validation